/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */
import React, {Component} from 'react';
import {
    Platform,
    StyleSheet,
    Text,
    View,
    ScrollView,
    TouchableWithoutFeedback,
    TouchableOpacity,
} from 'react-native';
import * as Animatable from 'react-native-animatable';

export default class App extends Component<{}> {
    render() {
        return (
            <TouchableWithoutFeedback
                onPress={() => this.refs.view.bounce(800).then((endState) =>
                    console.log(endState.finished ? 'bounce finished' : 'bounce cancelled'))}>
                <Animatable.View ref="view">
                    <Text>Bounce me!</Text>
                </Animatable.View>
            </TouchableWithoutFeedback>
        );
    }
}